﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using VirtualTournaments.Services.Tournaments;

namespace VirtualTournaments.Business.Tests.ServicesTests
{
    [TestClass]
    public class TestTeam
    {
        public TestTeam(){}

       

		[TestMethod, Ignore]
        public void GetTeamsByTournamentNameTest()
        {
            List<String> expectedTeams = new List<String>(new String[] 
                {"Argentinos", "Arsenal", "Atlético Tucumán", "Banfield", "Boca", "Chacarita", "Colón", "Estudiantes", "Gimnasia", "Godoy Cruz",
                 "Huracán", "Independiente", "Lanús", "Newells", "Racing", "River", "Rosario Central", "San Lorenzo", "Tigre", "Vélez" });

            List<Team> TeamsInDataBase = TeamsService.GetTeamsByTournamentName("Torneo Clausura 2009").ToList();

            Assert.AreEqual(expectedTeams.Count, TeamsInDataBase.Count);

            foreach (Team team in TeamsInDataBase)
                Assert.IsTrue(expectedTeams.Contains(team.Name));
        }
    }
}
